<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
<title>学生竞赛管理--教师端</title>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/Bootstrap/css/bootstrap.min.css"/>
<script src="${pageContext.request.contextPath}/js/jquery-1.11.3.js"></script> 
<script src="${pageContext.request.contextPath}/Bootstrap/js/bootstrap.min.js"></script>
<script src="${pageContext.request.contextPath}/js/index.js">

</script>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/Bootstrap/css/style.css"/>
<style>
.daan {
  padding-top: 50px;
  padding-bottom: 100px;
  margin-bottom: 20px;
  width: 100%;
  height: 100%;
  background-color: #FFF;
}
</style>
</head>
<body style="background:#EFF1F5;">
<div class="container-fluid" style="background:#FFF;">
  <div class="row">
    <div class="col-md-6" style="margin:10px 0;"> <a href="#" class="pull-left"><img src="{$smarty.const.IMG_URL}/logo.png"/></a> </div>
  
      <div class="col-md-6" style="margin:10px 0;">
      <ul class="list-unstyled list-inline pull-right">
        <li>
          <div class="btn-group">
            <button type="button" class="btn btn-info"><span class="glyphicon glyphicon-user">${teacherSession.t_name}</span> </button>
            <button type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <span class="caret"></span> <span class="sr-only"></span> </button>
            <ul class="dropdown-menu">
              <li><a href="${pageContext.request.contextPath}/teacher?method=logout"><span class="glyphicon glyphicon-log-out"></span> 退出</a></li>
            </ul>
          </div>
        </li>
      </ul>
    </div>
    
    
  </div>
</div>
<nav class="navbar navbar-default  navbar-inverse">
  <div class="container-fluid">
    <div class="navbar-header"> <a href="#" class="navbar-brand">学生竞赛管理</a>
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
    </div>
    <div class="collapse navbar-collapse" id="navbar-collapse">
      <ul class="nav navbar-nav" style="margin-top:0px;">
        <li class="active"><a href="${pageContext.request.contextPath}/teacher/index.jsp"><span class="glyphicon glyphicon-folder-close"></span>上传竞赛信息</a></li> 
        <li><a href="${pageContext.request.contextPath}/teacher/show_bisai.jsp"><span class="glyphicon glyphicon-folder-close"></span>已上传竞赛信息</a></li>    
      </ul>
    </div>
  </div>
</nav>
<div class="container-fluid" style="margin-top:50px;margin-bottom:300px;">
  <div class="rows">
    <div class="col-md-3">
      <div class="list-group nav nav-tabs"> <a class="list-group-item active" >上传竞赛信息</a> <a class="list-group-item">竞赛信息</a> </div>
    </div>
    <div class="col-md-9">
      <ol class="breadcrumb">
      
      </ol>
      <div class="row">
        <div class="col-md-12">
         <div class="shiti col-md-8" id="shiti" style="background-color: #FFF;box-shadow: 
                  inset 1px -1px 1px #3585b8, inset -1px 1px 1px #3585b8; padding-top:50px;padding-bottom:50px;">
          <table class="table table-hover table-striped" style="background-color:#fff;">
            <h3 class="text-center"><strong>上传竞赛信息</strong><font color="red">${shibai}${shangchuanchenggong}</font></h3>
          		 <form role="form" action="${pageContext.request.contextPath}/teacher?method=shangchuan_bisai" method="post" onsubmit="return checkform()" enctype="multipart/form-data">
          <div class="rows">
          
            <input type="hidden" name="c_tea_name" value="${teacherSession.t_name}">
            
            <div class="row" style="margin-bottom:15px;">
              <div class="col-md-12 text-center"> 
               <span style="color:red;"></span>
               <span style="color:green;"></span> 
               <span style="color:red;"></span> 
              </div>
            </div>

            <div class="row" style="margin-bottom:15px;">
              <label  for="question_list_type" class="col-md-2 col-md-offset-2"> 学生学号： </label>
              
              <div class="col-md-6 col-md-offset-1">
                <input type="text" name="c_xuehao" id="c_xuehao" placeholder="请输入学生学号"  class="form-control" required/>
              </div>
              
            </div>
            <div class="row" style="margin-bottom:15px;">
              <label  for="question_list_type" class="col-md-3 col-md-offset-2" > 学生姓名： </label>
              <div class="col-md-6">
                <input type="text" name="c_stu_name" id="c_name" placeholder="请输入学生姓名" class="form-control" required/>
              </div>
            </div>
            <div class="row" style="margin-bottom:15px;">
              <label for="question_list_op1" class="col-md-2 col-md-offset-2 "> 学生班级： </label>
              <div class="col-md-6 col-md-offset-1">
                <input type="text" name="c_banji" id="c_banji" placeholder="请输入 学生班级" class="form-control" required/>
              </div>
            </div>
             <div class="row" style="margin-bottom:15px;">
              <label for="question_list_op2" class="col-md-2 col-md-offset-2"> 比赛及类别： </label>
              <div class="col-md-6 col-md-offset-1">
              
                <select id="leibie" name="c_leibie">
              		<option>--请选择类别--</option>
					<option>A</option>
					<option>B</option>
					<option>C</option>
					<option>其他</option>
				</select>
				<span id="leibie_span"></span>
				
				<div id="shuru">
					<select id="bisai">
						<option>--请选择比赛--</option>
					</select> 	
				</div>
				<span id="shuru_span"></span>
				<!-- 比赛名字不管是输入的还是选择的，统一用js交个下面这个隐藏域提交 -->
				<input type="hidden" name="c_bisai" id="c_bisai">
              </div>
            </div>
            <div class="row" style="margin-bottom:15px;">
              <label for="question_list_op3" class="col-md-2 col-md-offset-2"> 等级： </label>
              <div class="col-md-6 col-md-offset-1">
               <!--  <input type="text" name="question_list_op3" id="question_list_op3" placeholder="请输入选项C内容" class="form-control" required/> -->
               <select id="dengji" name="c_dengji">
					<option>--请选择等级--</option>
					<option>一等奖</option>
					<option>二等奖</option>
					<option>三等奖</option>
					<option>其他</option>
				</select>
				<span id = "dengji_span"></span>
              </div>
              
            </div>
             <div class="row" style="margin-bottom:15px;">
              <label for="question_list_op1" class="col-md-2 col-md-offset-2 "> 上传证书： </label>
              <div class="col-md-6 col-md-offset-1">
                <input type="file" name="upload" required>
              </div>
            </div>

          </div>
          <div class="row" style="margin-bottom:10px;">
            <div class="col-md-11">
              <button type="submit" class="btn btn-primary pull-right">提交</button>
              <button type="reset" class="btn btn-info pull-right" style="margin-right:20px;">重置</button>
            </div>
          </div>
        </form>
      </div>
            
          </table>
        </div>
      </div>
    </div>
  </div>
</div>
</div>
<footer id="footer">
  <div class="container">
    <div class="col-md-4 col-xs-4">
      <div class="pull-left"><img src="{$smarty.const.IMG_URL}/tel.jpg" width="28" height="28" class="img-responsive"/>联系我们：<span class="tel">15153070806</span></div>
    </div>
    <div class="col-md-4 col-xs-4">
      <div class="text-center">
        <p> 在线考试 || 电子作业 || 学习资源 || 优创论坛 </p>
        <P> 学生竞赛管理 ©  2016 By xiaotao </P>
      </div>
    </div>
   
  </div>
</footer>
</body>
<script src="${pageContext.request.contextPath}/js/jquery.1.11.3.js"></script> 

</html>